export class InkSettings {
    /**默认线条颜色 */
    public static readonly DefaultStrokeWidth: number = 2;
    /**默认线条颜色 */
    public static readonly DefaultStrokeColor: string = '#000000';
    /**默认背景颜色 */
    public static readonly DefaultBackgroundColor: string = '#FFFFFF';
    /**默认的缩放增长值 */
    public static readonly DefaultScaleSeed: number = 0.1;
    /**默认最小的缩放值 */
    public static readonly DefaultMinScale: number = 0.1;
    /**默认的亮度增长值 */
    public static readonly DefaultBrightnessSeed: number = 0.1;
    /**默认最小的亮度值 */
    public static readonly DefaultMinBrightness: number = 0.1;
    /**创建一个新的线条标识 */
    public static createNewStrokeId () {
        const date = new Date();
        const padNum2 = (val: number) => {
            let temp = `${val}`;
            if (temp.length === 1)
                temp = `0${temp}`;
            return temp;
        };
        const padNum3 = (val: number) => {
            let temp = `${val}`;
            if (temp.length === 1)
                temp = `00${temp}`;
            else if (temp.length === 2)
                temp = `0${temp}`;
            return temp;
        };
        return `${date.getFullYear()}${padNum2(date.getMonth() + 1)}${padNum2(date.getDate())}` +
            `${padNum2(date.getHours())}${padNum2(date.getMinutes())}${padNum2(date.getSeconds())}${padNum3(date.getMilliseconds())}`;
    }
}